package org.ftc.service;

import java.util.List;

import org.ftc.dao.CodeTypeDao;
import org.ftc.domain.CodeType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CodeTypeService {
	
	@Autowired
	CodeTypeDao codeTypeDao;
	@Autowired
	private UsersService usersService;
	
	public CodeType load(String id) {
		return codeTypeDao.load(id);
	}

	public CodeType get(String id) {
		return codeTypeDao.get(id);
	}
	
	public synchronized boolean save(CodeType entity) {
		return codeTypeDao.save(entity);
	}


	public synchronized boolean saveOrUpdate(CodeType entity) {
		return codeTypeDao.saveOrUpdate(entity);
	}

	public synchronized boolean update(CodeType entity) {
		return codeTypeDao.update(entity);
	}

	public synchronized boolean delete(CodeType entity) {
		return codeTypeDao.delete(entity);
	}

	public synchronized boolean delete(String id) {
		return codeTypeDao.delete(id);
	}
	

	public List<CodeType> findAll() {
		return codeTypeDao.findAll();
	}

	public long countAll() {
		return codeTypeDao.countAll();
	}
	
	
	
}
